﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FifaChamps.API.Data
{
    public class Stage
    {
        public int StageID { get; private set; }
        public int TournamentID { get; private set; }
        public string Name { get; private set; }
        public DateTime? StartDate { get; private set; }
        public DateTime? EndDate { get; private set; }

        internal Stage()
        {
        }

        internal Stage(int id, int tournamentid, string name, DateTime? startdate, DateTime? enddate)
        {
            StageID = id;
            TournamentID = tournamentid;
            Name = name;
            StartDate = startdate;
            EndDate = enddate;
        }

        internal static Stage Factory(int stageid, int tournamentid, string name, DateTime? startdate, DateTime? enddate)
        {
            return new Stage(stageid, tournamentid, name, startdate, enddate);
        }        
    }
}
